package com.kaili.basic.pojo.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kaili.common.pojo.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;


/**
* 策略管理主 entity
* @author:zhangjl
* @Time: 2019-07-24
* @Copyright: ©  杭州凯立通信有限公司 版权所有
* @Warning: 本内容仅限于公司内部传阅,禁止外泄或用于其它商业目的
*/
@Data
@TableName("mdm_strategy_main")
public class StrategyMainEntity extends BaseEntity {
	@TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("策略名称")
    private String strategyName;

    @ApiModelProperty("策略类型:数据字典维护")
    private String strategyId;

    @ApiModelProperty("起始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("服务类型")
    private String serviceType;

    @ApiModelProperty("描述")
    private String remark;

    @ApiModelProperty("数据状态：0删除1正常")
    private String rdStatus;

    @TableField(exist = false)
    @ApiModelProperty("设备策略")
    private List<StrategySiteEntity> strategySiteDetail;

    @TableField(exist = false)
    @ApiModelProperty("WIFI配置")
    private List<StrategyWifiEntity> strategyWifiDetail;

    @TableField(exist = false)
    @ApiModelProperty("复选数据表")
    private List<GlobalClobEntity> globalClobEntityList;

    @TableField(exist = false)
    @ApiModelProperty("升级类策略表")
    private List<StrategyUpgradeEntity> strategyUpgradeDetail;
}
